package com.jf.hb.ui.interfaces;

import javax.swing.*;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-08-05
 * Time:2:42
 */
public abstract class Interface extends JPanel implements Runnable {
    protected Thread thread;


    public void start() {
        thread = new Thread(this);
        thread.start();
    }

    public void stop() {
        thread.interrupt();
    }
}
